package com.cfs.vo;

import java.io.Serializable;
import java.util.List;

import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;

import com.cfs.po.bz.AppInfo;
import com.cfs.po.bz.Information;
import com.cfs.po.bz.Report;
import com.cfs.po.bz.Tvbox;
import com.cfs.po.sys.User;

/**
 * 返回值包装器
 * 
 * 
 * @author SDZJ
 * 
 */
@XmlRootElement(name = "Res")
@XmlSeeAlso(value = { AppInfo.class, Information.class, 
		Report.class, Tvbox.class, User.class})
public class Res<T> implements Serializable {

	private static final long serialVersionUID = 4370166174568919711L;

	private int code = 0;
	private String msg;
	private T obj;

	/**
	 * 返回分页
	 */
	private Pager p;
	private List<T> list;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public T getObj() {
		return obj;
	}

	public void setObj(T obj) {
		this.obj = obj;
	}

	public Pager getP() {
		return p;
	}

	public void setP(Pager p) {
		this.p = p;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

}
